﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;

namespace ProggersWTC.Views
{
    public static class MessageHandler
    {
        public static void ShowError(String errorMessage)
        {
            MessageBox.Show(errorMessage, "Foutmelding", MessageBoxButton.OK, MessageBoxImage.Error);
        }

        public static void ShowWarning(String warningMessage)
        {
            MessageBox.Show(warningMessage, "Waarschuwing", MessageBoxButton.OK, MessageBoxImage.Warning);
        }

        /** Ja = true, Nee = false */
        public static bool ShowQuestion(String questionMessage)
        {
            return (MessageBox.Show(questionMessage, "Opmerking", MessageBoxButton.YesNo, MessageBoxImage.Question) == MessageBoxResult.Yes);
        }

        public static void ShowOkMessage(String okMessage)
        {
            MessageBox.Show(okMessage, "Melding", MessageBoxButton.OK, MessageBoxImage.Information);
        }
    }
}
